<template>
  <el-header class="header">
    <div class="content">
      <div class="leftCont">
        <div class="logoName">
          <h3>
            <a>
              <span>实践教学管理</span>
            </a>
          </h3>
        </div>
      </div>
      <div
        class="rightCont"
        style="display: flex; margin-right: 20px"
      >
        <h2 class="centerCont">{{ $store.state.userName }}</h2>
        <h2 class="settingAndexit" style="margin-left: 10px">退出登录</h2>
      </div>
    </div>
  </el-header>
</template>

<script>
export default {
  name: 'designHeader',
  data() {
    return {}
  }
}
</script>

<style scoped lang="scss">
  .header {
    background: #409eff;
    line-height: 60px;
    padding-right: 0;
    font-family: cursive;
    .content {
      display: flex;
      justify-content: space-between;
      color: #fff;
      .centerCont {
        color: #fff;
        border-right: 1px solid #dcdfe6;
        padding-right: 10px;
        margin-right: 10px
      }
      .leftCont {
        display: flex;
        margin-left: 35px;
        .logoName {
          color: #fff;
          .el-image {
            vertical-align: middle;
            height: 24px;
            width: 24px;
            margin: 4px 6px 6px 10px;
          }
        }
      }
      .userMsg {
        display: flex;
        align-items: center;
        line-height: 0;
        height: 60px;
        color: #fff;
        font-size: 14px;
        padding: 0 10px;
        &:hover {
          cursor: pointer;
          background: #367fa9;
        }
        .block {
          padding: 0 5px;
        }
      }
      .dropMessage {
        width: 217px;
        height: 221px;
        position: absolute;
        right: 12px;
        top: 59px;
        text-align: center;
        padding: 1px 2px 0 0;
        border-radius: 4px;
        border-color: #ccc;
        z-index: 9;
        .block {
          padding: 20px 0 40px 0;
          line-height: 0;
        }
        p {
          padding-top: 20px;
          color: #ffff;
        }
        .user-header {
          background: #409eff;
        }
        .dropFooter {
          background-color: #f9f9f9;
          padding: 10px;
        }
      }
    }
  }
  /deep/.el-dropdown {
    font-size: 100%;
  }
  .settingAndexit {
    color: #fff;
    cursor: pointer;
  }
</style>
